﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AAA.Meta.Chart.Data;

namespace AAA.Chart.Data
{
    public interface IDataSource
    {
        int GetLength(string strSymbolId);
        BarData GetData(string strSymbolId);
        PriceVolumeData GetPriceVolume(string strSymbolId);
        PriceVolumeData GetPriceVolume(string strSymbolId, string strStartDate, string strEndDate); 
        List<string> SymbolList();
        bool ContainsSymbol(string strSymbolId);
        void AddSymbol(string strSymbolId, BarData barData);
        void AddSymbol(string strSymbolId, Dictionary<string, PriceVolumeData> dicPriceVolumeData);
        void RemoveAllSymbol();
        void AddTick(string strSymbolId, float fPrice, float fVolume);
        float LastPrice(string strSymbolId);
        float LastVolume(string strSymbolId);
    }
}
